package epoch.game.core.actor;

class AContext {
	static ThreadLocal<Actor> ACTOR = new ThreadLocal<Actor>() {
        @Override protected Actor initialValue() {
            return null;
        }
    };
    static ThreadLocal<ASystem> SYSTEM = new ThreadLocal<ASystem>() {
        @Override protected ASystem initialValue() {
            return null;
        }
    };
    static int selfId() {
		Actor actor = ACTOR.get();
		return actor != null ? actor.id : 0;
	}
}